package com.loong.web.gp4j.bean.vo.util;

import com.loong.web.suppert.collection.list.KvnList.Kvn;

/**
 * 代码名称对象
 *
 * @author 张成轩
 */
public class CodeVo {

	private Integer id;
	private String key;
	private Integer value;
	private String name;

	/**
	 * @param id id
	 * @return this
	 */
	public CodeVo id(Integer id) {

		this.id = id;
		return this;
	}

	/**
	 * @param key 键
	 * @return this
	 */
	public CodeVo key(String key) {

		this.key = key;
		return this;
	}

	/**
	 * @param value 值
	 * @return this
	 */
	public CodeVo value(Integer value) {

		this.value = value;
		return this;
	}

	/**
	 * @param name 名称
	 * @return this
	 */
	public CodeVo name(String name) {

		this.name = name;
		return this;
	}

	/**
	 * @param kvn kvn
	 * @return this
	 */
	public CodeVo kvn(Kvn<String, Integer, String> kvn) {

		this.key = kvn.getKey();
		this.value = kvn.getValue();
		this.name = kvn.getName();
		return this;
	}

	/**
	 * @return id
	 */
	public Integer getId() {

		return id;
	}

	/**
	 * @param id id
	 */
	public void setId(Integer id) {

		this.id = id;
	}

	/**
	 * @return 键
	 */
	public String getKey() {

		return key;
	}

	/**
	 * @param key 键
	 */
	public void setKey(String key) {

		this.key = key;
	}

	/**
	 * @return 值
	 */
	public Integer getValue() {

		return value;
	}

	/**
	 * @param value 值
	 */
	public void setValue(Integer value) {

		this.value = value;
	}

	/**
	 * @return 名称
	 */
	public String getName() {

		return name;
	}

	/**
	 * @param name 名称
	 */
	public void setName(String name) {

		this.name = name;
	}
}
